package com.shm.h3c;

public class Solution1 {
    /**
     * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
     * 
     * @param str string字符串 
     * @return string字符串
     */
    public String character_auto_complete (String str) {
        // write code here
        String[] strs = {"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"};
        StringBuffer st = new StringBuffer();
        for (int i = 0; i < strs.length; i++) {
            int j = strs[i].indexOf(str);
            if (j==0){
                st.append(strs[i]);
                if (i<strs.length-1){
                    st.append(" ");
                }
            }
        }
        if (st.length()==0) {
            return "No match";
        }else {
            return st.toString();
        }
    }
}